<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>销售订单查询</title>
<link rel="stylesheet" type="text/css" href="../ui/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="../ui/themes/icon.css">
<script type="text/javascript" src="../ui/jquery.min.js"></script>
<script type="text/javascript" src="../ui/jquery.easyui.min.js"></script>
<script type="text/javascript" src="../ui/locale/easyui-lang-zh_CN.js"></script>
<script type="text/javascript" src="../ui/jquery.serializejson.min.js"></script>

<script type="text/javascript">


   var name="order";
	var height = 200;
	var width = 300;
   var columns=[[    
       {field:'oid',title:'订单编号',width:100},    
       {field:'name',title:'收货人',width:100},    
       {field:'total',title:'订单金额',width:100,align:'right'},
       {field:'phone',title:'收货人电话',width:100,align:'right'},
       {field:'addr',title:'收货人地址',width:100,align:'right'},
       {field:'orderTime',title:'订单时间',width:180,align:'right',formatter:function(value){
	    return new Date(value).Format("yyyy-MM-dd hh:mm:ss");}},
       {field:'state',title:'订单状态',formatter: function(value,row,index){
       	  value=value*1;
       	  if(value==1)return "未付款";
       	  else if(value==2) return '<a href="javascript:void(0)" onclick="fh(' + row.oid + ')">发货</a>';
		  else if(value==3) return "等待确认收货"; 
		  else if(value==4) return "交易完成"; 
		
		}}
   ]]
</script>
</head>
<body>
<table id="grid"></table>
</body>
</html>
